<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core" version="2.0">


	<div id="toolbar" class="grid-block">
		<div class="float-right">
			<div class="module  deepest">
				<c:choose>
					<c:when test="${empty username }">
						<ul class="menu menu-line">
							<li class="level1"><a class="level1" href="${root}/login"><span>Login</span>
							</a></li>
							<li class="level1"><a class="level1" href="${root}/register"><span>Register</span>
							</a></li>
						</ul>
					</c:when>
					<c:otherwise>
						<span> Welcome ${sessionScope.username}! </span>
						<span> <a href="${root}/user"> Account Setting</a>
						</span>
						<span> <a href="${root}/logout">logout</a></span>
					</c:otherwise>
				</c:choose>
			</div>
		</div>
	</div>

</jsp:root>